package de.tum.in.eist.poll.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.poll.shared.Lecturer;
import de.tum.in.eist.poll.shared.Poll;
import de.tum.in.eist.poll.shared.exceptions.DuplicatePollException;
import de.tum.in.eist.poll.shared.exceptions.DuplicateUserException;
import de.tum.in.eist.poll.shared.exceptions.InvalidAdminLoginException;


@RemoteServiceRelativePath("admin")

public interface AdminService extends RemoteService{
	void addUser(Lecturer lecturer, String matrikel) throws DuplicateUserException, InvalidAdminLoginException;
	void addPoll(Lecturer lecturer, Poll poll) throws DuplicatePollException, InvalidAdminLoginException;
	public List<String> getUserMatrikelList(Lecturer lecturer) throws InvalidAdminLoginException;

}
